package com.common.aspect;

import org.aspectj.lang.annotation.After;

/**
 * Business layer aspect.
 * 
 * @author nickevin@gmail.com
 * @version Mar 28, 2009
 *  
 */

//@Aspect
//@Component
public class ServiceAspect {

    /**
     * 1. 根据 return jp.proceed(); 处理流程 2. 若不 return jp.proceed(); 则调用此方法的原始点的值永远为null
     */
    @After("execution(* *..service.*Manager.save(..))&& args(object)")
    public <T> void save(T object) {}

    @After("execution(* *..service.*Manager.remove(..))&& args(id)")
    public <PK> void remove(PK id) {}

}
